﻿#ifndef CAMERAWORKER_H
#define CAMERAWORKER_H


/*
 * 处理相机拍摄 进行相机设置与调整
*/
#include <QObject>
#include <QDebug>
#include "Common/common.h"
#include "BaslerCamera/sbaslercameracontrol.h"
#include "Common/common.h"

class CameraWorker : public QObject
{
    Q_OBJECT
public:
    explicit CameraWorker(QObject *parent = nullptr);
    ~CameraWorker();

    bool m_bIsStreaming;

    int m_nWidth;
    int m_nHeight;
    SBaslerCameraControl* m_control = Q_NULLPTR;
    CameraData m_cData;
signals:
    void sigAlgStart(CameraData m_cImageInfo);
public slots :
    // Frame
    void OnFrameReady(int count);

    void SlotsFrameNums();

    void Initialize();
    void start();
    void stop();
};

#endif // CAMERAWORKER_H
